<template>
    <layout>
    	<ul class="active_w">
				<li v-for="(data,index) in dynamic.list" :key="index">
					<div class="conetnt" v-if="">
						<div class="comtent_top">
							<div class="comtent_l"><img :src="api.image + data.headImgUrl"></div>
							<div class="comtent_c">{{ data.name }}</div>
						</div>
						<div class="meark">
							<div class="c_top">{{ data.title }}</div>
							<div class="c_img_box">
								<div class="c_img">
                                    <img v-if="data.images != ''"  :src="api.image + data.images">
                                    <img v-else=""  >


                                </div>
							</div>
							<div class="c_fot" v-if="data.typeName != 1">
								<div class="c_left"><div>赞{{ data.postLikeCount}}  &nbsp;回帖{{ data.objectId}}</div></div>
								<div class="c_right">{{ data.createDate | data}}</div>
							</div>
                            <div class="c_fot" v-else="data.typeName = 2">
                                <div class="c_left">{{ data.createDate | data}}</div>
                                <div class="c_right">回答{{ data.commentCount }}</div>
                            </div>


						</div>
					</div>
				</li>

			</ul>
    </layout>
</template>
<style lang="scss">
    @import "index.scss";

</style>
<script type="text/babel">
    import { api, image } from 'framework/config.js';
    import Layout from "component/layout/standard";

    import Vue from 'vue'
    import Mint from 'mint-ui';
    Vue.use(Mint);

    export default {
        components: {
            Layout
        },
        data(){
            return {

            }
        },
        filters: {
            data:function (data) {
                var d = new Date(data);
                var hour = d.getHours();
                var minutes = d.getMinutes();
                var seconds = d.getSeconds();

                return   hour + ':' + minutes + ':' + seconds;


            }

        },
        computed: {
            api(){
                return api();
            }
        },
        methods: {
            showImage(url, params){
                return image(this.api.image, url, params);
            },
        },
        created(){
        },
        mounted() {



        }
    }
</script>

